package com.buba.commodity.service.impl;

import com.buba.commodity.dao.ColorMapper;
import com.buba.commodity.pojo.ProductColor;
import com.buba.commodity.service.ColorService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DubboService
public class ColorServiceImpl implements ColorService {
    private ColorMapper colorMapper;

    @Override
    public List<ProductColor> selColor() {
        return colorMapper.selColor();
    }

    @Autowired
    public void setColorMapper(ColorMapper colorMapper) {
        this.colorMapper = colorMapper;
    }


}
